﻿<Window 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:local="clr-namespace:Kinectver1._0"
        xmlns:sglWpf="clr-namespace:SharpGL.WPF;assembly=SharpGL.WPF"
        xmlns:sglWpfSceneTree="clr-namespace:SharpGL.WPF.SceneTree;assembly=SharpGL.WPF"
        xmlns:my="clr-namespace:Microsoft.Samples.Kinect.WpfViewers;assembly=Microsoft.Samples.Kinect.WpfViewers" xmlns:SceneTree="clr-namespace:SharpGL.WPF.SceneTree;assembly=SharpGL.WPF" x:Class="Kinectver1._0.MainWindow" 
        Title="Kinect A Cad Modeling System" Height="672.355" Width="1261.4" Loaded="Window_Loaded" Closing="Window_Closing" 
        >
    <Window.DataContext>
        <local:CoordinatePlane x:Name="plane"/>
    </Window.DataContext>
    <Canvas Margin="0,0,240,130">
        <Grid Height="480" Width="640" ClipToBounds="True" Canvas.Left="248" Canvas.Top="120">
            <Image x:Name="colorCamera" Source= "{Binding Bitmap}"/>
        </Grid>
        <Grid Height="480" Width="840" Canvas.Left="48" Canvas.Top="120">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width=" 200"/>
                <ColumnDefinition Width=" 640"/>
            </Grid.ColumnDefinitions>
            <sglWpfSceneTree:SceneTree x:Name="workspacetree" Scene="{Binding workspace}" Grid.Column="0"/>
            <sglWpf:SceneView x:Name="workspaceviewer" Scene="{Binding workspace}" DrawFPS="True" Grid.Column="1"/>
        </Grid>
        <Canvas Canvas.Left="261" Canvas.Top="32" Height="480" x:Name="kinectCanvas" Width="640" />
        <Canvas Canvas.Left="261" Canvas.Top="32" Height="480" x:Name="gesturesCanvas" Width="640" />
        <ListBox x:Name="detectedGestureList" Height="109" Canvas.Left="923" Canvas.Top="32" Width="308" FontSize="16"/>
        <!--<TextBox x:Name="leftX" Height="25" Canvas.Left="1091" TextWrapping="Wrap" Canvas.Top="17" Width="50"/>
        <TextBox x:Name="leftY" Height="25" Canvas.Left="1091" TextWrapping="Wrap" Canvas.Top="48" Width="50"/>
        <TextBox x:Name="leftZ" Height="25" Canvas.Left="1091" TextWrapping="Wrap" Canvas.Top="78" Width="50"/>
        <TextBox x:Name="rightX" Height="25" Canvas.Left="1190" TextWrapping="Wrap" Canvas.Top="17" Width="50"/>
        <TextBox x:Name="rightY" Height="25" Canvas.Left="1190" TextWrapping="Wrap" Canvas.Top="48" Width="50"/>
        <TextBox x:Name="rightZ" Height="25" Canvas.Left="1190" TextWrapping="Wrap" Canvas.Top="78" Width="50"/>-->
        <TextBox x:Name="scadtext" Height="397" Width="308" Canvas.Top="203" Canvas.Left="923" />
        <TextBlock Canvas.Left="923" TextWrapping="Wrap" Text="SCAD CODE:" Canvas.Top="182"/>
        <TextBlock Canvas.Left="923" TextWrapping="Wrap" Text="Detected Gestures:" Canvas.Top="11"/>
        <Button x:Name="reset" Content="clear recog gestures " Canvas.Left="1105" Canvas.Top="146" Width="126" Click="reset_Click"/>
        <!--<TextBlock Canvas.Left="1078" TextWrapping="Wrap" Text="X" Canvas.Top="27"/>
        <TextBlock Canvas.Left="1078" TextWrapping="Wrap" Text="Y" Canvas.Top="56"/>
        <TextBlock Canvas.Left="1078" TextWrapping="Wrap" Text="Z" Canvas.Top="86"/>
        <TextBlock Canvas.Left="1099" TextWrapping="Wrap" Text="Left" Canvas.Top="107"/>
        <TextBlock Canvas.Left="1198" TextWrapping="Wrap" Text="right" Canvas.Top="107"/>-->
        <TextBox x:Name="numberbox" Height="21" Canvas.Left="675" TextWrapping="Wrap" Text="Number Box" Canvas.Top="53" Width="86"/>
        <ComboBox Canvas.Left="50" Canvas.Top="50" Width="120" x:Name="cmd"/>
        <ComboBox Canvas.Left="210" Canvas.Top="50" Width="120" x:Name="p1" />
        <ComboBox Canvas.Left="370" Canvas.Top="50" Width="120" x:Name="p2" />
        <ComboBox Canvas.Left="530" Canvas.Top="50" Width="120" x:Name="p3" />
        <ComboBox Canvas.Left="530" Canvas.Top="50" Width="120" x:Name="num" />
    </Canvas>
</Window>